import 'package:love_newf/generated/json/base/json_field.dart';
import 'package:love_newf/generated/json/room_type_model.g.dart';
import 'dart:convert';
export 'package:love_newf/generated/json/room_type_model.g.dart';

@JsonSerializable()
class RoomTypeModel {
	  int roomType = 0;
	  String name = '';
	  int roomPeople = 0;
	  int needBuy = 0;
	  List<RoomTypeRoomAuthPrices> roomAuthPrices = [];
	  String expireTime = '';

	RoomTypeModel();

	factory RoomTypeModel.fromJson(Map<String, dynamic> json) => $RoomTypeModelFromJson(json);

	Map<String, dynamic> toJson() => $RoomTypeModelToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class RoomTypeRoomAuthPrices {
	late int id = 0;
	late int roomType = 0;
	late String title = '';
	late int price = 0;
	late int day = 0;

	RoomTypeRoomAuthPrices();

	factory RoomTypeRoomAuthPrices.fromJson(Map<String, dynamic> json) => $RoomTypeRoomAuthPricesFromJson(json);

	Map<String, dynamic> toJson() => $RoomTypeRoomAuthPricesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}